<ion-view title="登录" class="p-transit-bg" >
    <ion-nav-bar>
        <!--不能没有这个标签-->
        <a class="icon ion-android-arrow-back"  style="position: absolute;top:10px;left:10px;z-index: 9999;color: white;font-size: 30px;"  ng-click="goBackdash()"></a>
    </ion-nav-bar>


    <ion-header-bar class="bar-energized" style="color: white">
        <!--<button class="button-icon icon ion-chevron-left" style="color:white" ng-click="goBack()"></button>-->

    </ion-header-bar>
    <ion-content has-header="true">
        <div class="center">
            <img src="img/logo.png" class="login-logo">
        </div>


        <div class="item item-input" id="login-input" style="background: transparent!important;">
            <i class="icon ion-iphone placeholder-icon" style="padding-left: 2px"></i>
            <input type="tel" placeholder="手机号" ng-model="cellnumber" style="background-color: transparent!important;">
            <a class="input-button button button-icon ion-close-circled"
                    ng-click="cellnumber=''">
            </a>
        </div>

        <label class="item item-input" id="login-input" style="background: transparent!important;">
            <i class="icon ion-ios7-locked placeholder-icon" ></i>
            <input type="password" placeholder="密码" ng-model="password"  style="background-color: transparent!important;">
        </label>

        <div ng-class="{true: '', false: 'ng-hide'}[login_failed]">登录失败</div>
        <div ng-class="{true: '', false: 'ng-hide'}[service_offline]">服务不在线</div>
        <div ng-class="{true: 'ng-hide', false: ''}[service_connected]">连接中</div>


        <div class="center" style="margin: 1.2em 2.2em 0 2.2em; ">
            <a class="button item-input button-inverse login-button" style="background-color: #f5a290!important"  ng-click="tryLogin(cellnumber, password)">登录</a>
        </div>

        <div class="center">
            <img src="img/dot.png" style="padding-top: 5px; padding-bottom: 5px">
        </div>

        <div class="center">
            <a class="register-new" href="#/signup">注册新用户</a>
        </div>

    </ion-content>
</ion-view>
